package com.group2.bankonline.mapper;

import com.group2.bankonline.pojo.Recipient;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author syf
 * @since 2024-07-11
 */
public interface RecipientMapper extends BaseMapper<Recipient> {
    @Select("""
            select * from recipient where accountId = #{aid} and otherId = #{oid};
            """)
    public Recipient selectByAIdAndOid(@Param("aid")int accountId,@Param("oid")int otherId);
}
